<template>
  <div class="flex-rowl login-view">
    <a-button style="margin: auto; width: 240px; height: 60px" @click="onlogin">产品化组件演示系统</a-button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router"
import { userStore } from "@/store/userStore"

const router = useRouter()

// console.log(33, router.getRoutes());
const onlogin = () => {
  userStore().userInfo.token =
    "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhbmRtaW4xNDciLCJ0ZW5hbnRJZCI6Ii0xIiwiZXhwIjoxNjc2MDkxMzI0LCJpYXQiOjE2NzYwMDQ5MjR9.sIBiRH3k5ASS2S-WF5LuajYLa5vuMWHVAr9RYRxruxR0ZjNXcSbBgu_nNrtPNbb7DL7t49yir0ebepoDsP5BIQ"
  router.push("/layout/workbench")
}
</script>

<style scoped>
.login-view {
  width: 100%;
  height: 100vh;
  background: transparent url(./aa.png);
  background-size: cover;
}
</style>
